package com.chance.cc.crawler.prod.command.script.sn;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.development.scripts.sn.SNCrawlerScript;

/**
 * @ClassName sn
 * @Description TODO
 * @Author songding
 * @Date 2021/10/20 15:14
 * @Version 1.0
 **/
public class SUNingCrawlerScript {
    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217",
            9599);
    public static void publishCrawlerNodeScript(){

        HttpPage page = scriptCommand.publishCrawlerScript2Consul(SNCrawlerScript.domain);
        System.out.println("发布采集脚本：" + page.getRawText());
    }

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }
}
